<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // 
        require_once('/Users/CTR/desktop/Phpweb1/conn.php');

        if ($_POST['name']) {
            //获取文本框的内容
            $keyword = $_POST['name'];
        }

        $query = "delete from mytable where name='$keyword'";
        $result = @mysqli_query($conn, $query);

        mysqli_close($conn);
        include('links.txt');
        ?>

    </body>
</html>
